home *** CD-ROM | disk | FTP | other *** search
- /***************************************************************************
- *
- *
- * NCSA HDF version 3.2r2
- * October 30, 1992
- *
- * NCSA HDF Version 3.2 source code and documentation are in the public
- * domain. Specifically, we give to the public domain all rights for future
- * licensing of the source code, all resale rights, and all publishing rights.
- *
- * We ask, but do not require, that the following message be included in all
- * derived works:
- *
- * Portions developed at the National Center for Supercomputing Applications at
- * the University of Illinois at Urbana-Champaign, in collaboration with the
- * Information Technology Institute of Singapore.
- *
- * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
- * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
- * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
- *
- ****************************************************************************
- */
-
- /*
- $Header: /hdf/hdf/v3.2r2/util/RCS/he_proto.h,v 1.4 1992/10/13 20:30:23 koziol beta koziol $
-
- $Log: he_proto.h,v $
- * Revision 1.4 1992/10/13 20:30:23 koziol
- * Updates for v3.2r2 release
- * .,
- *
- * Revision 1.1 1992/09/18 14:56:22 koziol
- * Initial revision
- *
- * Revision 1.4 1992/09/11 18:32:51 chouck
- * Assorted MAC mungings
- *
- * Revision 1.3 1992/08/11 23:05:39 sxu
- * Added parameter 'int raw' in prototype dump()
- *
- * Revision 1.2 1992/07/15 21:48:48 sxu
- * No change.
- *
- * Revision 1.1 1992/07/14 16:38:12 mlivin
- * Initial revision
- *
- */
- /* Prototypes for hdfed functions */
- int HEalias
- PROTO((HE_CMD *cmd));
-
- int HEannotate
- PROTO((HE_CMD *cmd));
-
- int HEclose
- PROTO((HE_CMD *cmd));
-
- int HEdelete
- PROTO((HE_CMD *cmd));
-
- int HEdisplay
- PROTO((HE_CMD *cmd));
-
- int HEdump
- PROTO((HE_CMD *cmd));
-
- int HEgetR8
- PROTO((HE_CMD *cmd));
-
- int HEhelp
- PROTO((HE_CMD *cmd));
-
- int HEif
- PROTO((HE_CMD *cmd));
-
- int HEinfo
- PROTO((HE_CMD *cmd));
-
- int HEnext
- PROTO((HE_CMD *cmd));
-
- int HEopen
- PROTO((HE_CMD *cmd));
-
- int HEprev
- PROTO((HE_CMD *cmd));
-
- int HEput
- PROTO((HE_CMD *cmd));
-
- int HEputR8
- PROTO((HE_CMD *cmd));
-
- int HEquit
- PROTO((HE_CMD *cmd));
-
- int HErevert
- PROTO((HE_CMD *cmd));
-
- int HEselect
- PROTO((HE_CMD *cmd));
-
- int HEunalias
- PROTO((HE_CMD *cmd));
-
- int HEwait
- PROTO((HE_CMD *cmd));
-
- int HEwrite
- PROTO((HE_CMD *cmd));
-
- int annotate();
-
- int backupFile
- PROTO((char *file));
-
- char *backupName
- PROTO((char *file));
-
- int bigImg
- PROTO((unsigned char *targ, unsigned char *src));
-
- char * catStr
- PROTO((char *s1, char *s2));
-
- int closeFile
- PROTO((int keep));
-
- void cmdLoop
- PROTO((void));
-
- void convertTemplate
- PROTO((char *template, int n1, int n2, int n3, char **pname));
-
- int copyFile
- PROTO((char *from, char *to));
-
- char *copyStr
- PROTO((char *str));
-
- int delete
- PROTO((int curr));
-
- void deleteCmd
- PROTO((HE_CMD *cmd));
-
- int deleteDesc
- PROTO((int desc));
-
- int desc2Grp
- PROTO((int desc));
-
- int display
- PROTO((int c, int x, int y, int f, int l));
-
- int dump
- PROTO((int32 length, int offset, char *foramt, int raw));
-
- int fileOpen
- PROTO((void));
-
- void fillTemplate
- PROTO((char **template, char **pout, char *s, char templateChar));
-
- HE_CMD *findAlias();
-
- int findDesc
- PROTO((tag_ref_ptr dd));
-
- HE_FUNC findFunc();
- int findKey();
-
- int findOpt
- PROTO((char *word));
-
- int32 getAnn
- PROTO((int ann, int16 tag, int16 ref, char **pBuf));
-
- HE_CMD *getCmd
- PROTO((void));
-
- int getCurrRig
- PROTO((int32 *pXdim, int32 *pYdim, char **pPalette, char **pRaster));
-
- int32 getElement
- PROTO((int desc, char **pdata));
-
- int getLine();
- int getNewRef();
-
- int getPix
- PROTO((void));
-
- int getR8
- PROTO((int xdim, int ydim, char *image, char *pal, int compress));
-
- int getSpace
- PROTO((void));
-
- int getTmpName
- PROTO((char **pname));
-
- void goTo
- PROTO((int desc));
-
- int hasReference
- PROTO((int desc));
-
- void help
- PROTO((void));
-
- int info
- PROTO((int all, int longout, int group, int label));
-
- void infoDesc
- PROTO((int desc, int longout, int label));
-
- int initFile
- PROTO((char *file));
-
- int isGrp
- PROTO((uint16 tag));
-
- int isNumber();
-
- int largeSet
- PROTO((void));
-
- int main
- PROTO((int argc, char *argv[]));
-
- HE_CMD *mkDupCmd();
- char *nextToken();
- char *nextWord();
-
- int numCompare();
-
- int od
- PROTO((char *format, char *file));
-
- int openFile
- PROTO((char *file, int backup));
-
- HE_CMD *parse();
- HE_CMD *parseCmd();
- HE_PRED *parsePred();
-
- int pixImage
- PROTO((int usepal));
-
- void printAlias();
- void prompt();
-
- int put
- PROTO((char *template, int verbose));
-
- int putAnn
- PROTO((int ann, uint16 tag, uint16 ref, char *buf, int32 len));
-
- int putElement
- PROTO((char *file, uint16 tag, uint16 ref, char *data, int32 len));
-
- int putR8
- PROTO((char *image, char *pal, int verbose));
-
- int putWithTempl
- PROTO((char *template, int n1, int n2, int n3, char *data, int length, int verbose));
-
- int quit
- PROTO((int status));
-
- int rImage
- PROTO((int usepal));
-
- int32 readFromFile
- PROTO((char *file, char **pBuf));
-
- int recurseDel
- PROTO((int curr));
-
- int removeFile
- PROTO((char *file));
-
- int resetPred();
-
- int revert
- PROTO((void));
-
- int rleIt
- PROTO((char *buf, char *bufto, int len));
-
- int satPred();
- int setAlias();
-
- int setPal
- PROTO((char *pal));
-
- int updateDesc
- PROTO((void));
-
- int writ
- PROTO((char *file, uint16 tag, uint16 ref));
-
- int writeAnnot
- PROTO((char *file, uint16 tag, uint16 ref));
-
- int writeElt
- PROTO((char *file, uint16 ref, int elt));
-
- int writeGrp
- PROTO((char *file));
-
- int writeToFile
- PROTO((char *file, char *data, int32 length));
-